Skip to content

Fix native catalog credential vending skipping allowedLocations re-validation#4860

Merged
dimas-b merged 5 commits into
apache:mainfrom
vigneshio:fix/native-credential-vending-allowed-locations-revalidation
Jun 26, 2026
Merged

Fix native catalog credential vending skipping allowedLocations re-validation#4860
dimas-b merged 5 commits into
apache:mainfrom
vigneshio:fix/native-credential-vending-allowed-locations-revalidation

Conversation

@vigneshio

Copy link
Copy Markdown
Contributor

Summary

Native catalog credential vending (the optimized loadCredentials path and delegation in loadTable) was trusting locations stored in the table entity without re-validating them against the current catalog allowedLocations.

Why this is needed

After an admin tightened a catalog's allowed locations, clients could still obtain fresh STS credentials for paths that were no longer allowed. This was a defense-in-depth gap that only affected the native (non-federated) path.

Changes

  • Always perform location validation before vending credentials for native catalogs (removed the isFederated guard).
  • Added the validation call in the optimized loadCredentials path.
  • Added a regression test that creates a table, shrinks the catalog's allowed locations, then verifies that loadCredentials is rejected..

Checklist

  • Clearly explained why the changes are needed
  • Added/updated tests with good coverage
  • Updated CHANGELOG.md under [Unreleased] > Fixes

…lidation

- Always validate table locations before vending credentials for native catalogs.
- Added regression test for post-creation allowedLocations shrink.
@vigneshio vigneshio force-pushed the fix/native-credential-vending-allowed-locations-revalidation branch from df46562 to 3f3eeae Compare June 22, 2026 17:13
dimas-b
dimas-b previously approved these changes Jun 24, 2026

@dimas-b dimas-b left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Thanks, @vigneshio !

@github-project-automation github-project-automation Bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jun 24, 2026
@dimas-b dimas-b requested a review from snazy June 24, 2026 21:00
@dimas-b

dimas-b commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@vigneshio : CatalogFederationIT appears to be broken.

@vigneshio

Copy link
Copy Markdown
Contributor Author

@vigneshio : CatalogFederationIT appears to be broken.

Resolved @dimas-b 👍

@dimas-b dimas-b requested review from adutra and flyrain June 25, 2026 01:21
@dimas-b

dimas-b commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

@nandorKollar: WDYT?

@nandorKollar nandorKollar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dimas-b dimas-b merged commit 85a0c29 into apache:main Jun 26, 2026
24 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to merge to Done in Basic Kanban Board Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants